package org.androidannotations.gradle.view.view;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;
import org.androidannotations.gradle.R;
import org.androidannotations.gradle.view.model.DemoListItemVo;

@EViewGroup(R.layout.demo_list_item_view)
public class DemoListItemView extends LinearLayout {

    @ViewById
    TextView tvName;

    public void bind(DemoListItemVo demoListItemVo) {
        tvName.setText(demoListItemVo.getName());
    }

    public DemoListItemView(Context context) {
        super(context);
    }
}
